for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
/**
* Created by vedi on 30/10/2016.
*/
'use strict';
const Sandcage = require('..');
const sandcage = new Sandcage('[YOUR SANDCAGE API KEY]');
const payload = {
jobs: [
{
url: 'http://cdn.sandcage.com/p/a/img/logo.jpg',
tasks: [
actions: 'save'
},
actions: 'resize',
filename: 'hello_world.jpg',
width: 200
actions: 'crop',
coords: '10,10,50,50'
'reference_id': '123456789',
actions: 'rotate',
degrees: 90
actions: 'cover',
width: 60,
height: 60,
cover: 'middle,center'
}
]
url: 'http://cdn.sandcage.com/p/a/img/header_404.png',
height: 30
};
const callbackUrl = '';
sandcage
.scheduleFiles(payload, callbackUrl)
.then((result) => {
console.log(result);
console.log
});